#ifndef COUNTDEVICE_H
#define COUNTDEVICE_H

#include "Device.h"

class CountDevice : public Device
{
public:
	CountDevice(int start);
	~CountDevice();

	virtual int open();
	virtual void close();
	virtual int read();

private:
	int _counter;
	int _startAt;
	bool _isOpen;
};

#endif
